;
(function () {
'use strict';
/**
 * user 吴尧
 * @ngdoc function
 * @name sasdApp.factory:InfoViewService
 * @description 用户管理控制器
 * factory of the sasApp
 */
angular.module('services.faultLocation.infoDisplay',[])
  .factory('InfoViewService',['Restangular',infoViewService]);

function infoViewService(Restangular){

  return {
      //查询客户发展分析数据请求
      queryCustomer: function (params,callback){
        Restangular.all('sas/OMdisplay/developmentAV/customerDevelopment/customerAnalysis').post(params).then(callback);
      },
      //查询省的请求
      getProvince: function (callback){
        Restangular.one('sas/common/provinceQuery').get().then(callback);
      },
      //查询客户到达数或和活跃数的表格数据
      queryCustomerForm: function (params,callback){
        Restangular.all('sas/OMdisplay/developmentAV/customerDevelopment/customerNum').post(params).then(callback);
      },
      //查询统一支付下的业务
      queryBusiness: function (params,callback){
        Restangular.all('sas/common/businessQuery').post(params).then(callback);
      },
      //查询客户业务量
      queryTraffic: function (params,callback){
        Restangular.all('sas/OMdisplay/developmentAV/customerDevelopment/businessAnalysis').post(params).then(callback);
      },
      //查询客户价值分析
      queryValue: function (params,callback){
        Restangular.all('sas/OMdisplay/developmentAV/customerValue/valueAnalysis').post(params).then(callback);
      },
      //查询总体渠道运营分析
      queryAllChannel: function (params,callback){
        Restangular.all('sas/OMdisplay/developmentAV/channelAnalysis/operationAnalysis').post(params).then(callback);
      },
      //签约缴费分析
      queryTwoBusiness:function(params,callback){
        Restangular.all('sas/OMdisplay/developmentAV/customerDevelopment/signPayAnalysis').post(params).then(callback);
      },
      //渠道请求
      queryChannel: function(params,callback){
        Restangular.all('sas/common/channelQuery').post(params).then(callback);
      },
      //渠道发展客户分析
      queryChannelData: function(params,callback){
        Restangular.all('sas/OMdisplay/developmentAV/channelAnalysis/developAnalysis').post(params).then(callback);
      },
      //业务渠道分析
      queryChannelAnalysis: function(params,callback){
        Restangular.all('sas/OMdisplay/developmentAV/channelAnalysis/customerAnalysis').post(params).then(callback);
      }


  };


	
} 
})();